gusucode.com > 支持向量机工具箱 - LIBSVM OSU_SVM LS_SVM源码程序 > 支持向量机工具箱 - LIBSVM OSU_SVM LS_SVM\stprtool\generalp\itosgn.m

    function  [Y] = itosgn(I)
%
% function  [Y] = itosgn(I)
%
% ITOSGN maps numbers 1 and 2 onto numbers 1 and -1.
%
% See also SGNTOI.
%

Y=-(I*2)+3;

return;